#include <iostream>
#include <unistd.h>

int main()
{
    int count = 0;
    alarm(1);
    while(true)
    {
        std::cout << "count: " << count << std::endl;
        count++;
    }
    return 0;
}